package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.Level;
import com.zzyl.vo.LevelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LevelMapper {
    /**
     * 分页查询护理等级
     *
     */
    Page<LevelVo> selectByPage(String name, Integer status);

    int insert(Level record);

    int deleteById(Integer id);

    int updateById(Level record);

    LevelVo selectById(Long id);

    List<LevelVo> selectAll();

    int updateStatusById(Integer id, Integer status);

    int countByName(String name);

    int selectByPlanId(Integer planId);
}
